Focus of trigger-function: All modules or current module only?

Hello developers,

 

I use following code to create a Trigger handling the closing of the module:

Trigger trig = trigger(module, close, 10, closeModuleTrig)

 

Does this trigger only affect the closing of the current module or any module(s)?

I suspect that not only the current module is relevant.


MarcoLuk - Mon Sep 11 11:14:30 EDT 2017

Re: Focus of trigger-function: All modules or current module only?
Mike.Scharnow - Tue Sep 19 15:32:58 EDT 2017

You will need to define the level where the trigger is to be executed, like in

Trigger T = trigger ("t1", project->"p1"->module->all, pre, close, 10, code)

 

Re: Focus of trigger-function: All modules or current module only?
chrisroy - Wed May 09 08:21:29 EDT 2018

I think there's multiple ways to interpret the question but here are some answers:

1) The trigger is attached only to that module

2) The code under 'closeModuleTrig' may affect other modules (we don't have the code so we don't know)